package Day5Zuoye;

import java.util.Scanner;

public class CatCatchesMouseTest {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        Cat cat=new Cat("tom",100,100);
        Mouse mouse=new Mouse("jack",40,100);
        System.out.println("请输入1或0");
        int i=in.nextInt();
        if(i==1){
            System.out.println("猫没有抓到老鼠");
            cat.show();
            mouse.show();
        }
        if (i==0){
            System.out.println("猫抓到老鼠,并咬死了");
            cat.show();
            mouse.setPower(0);
            mouse.show();
        }
    }
}
